﻿
using Demo.Models.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// Class BaseRole.
    /// </summary>
    [Description("系统角色")]
    public class BaseRole : BaseEntity<long>
    {
        public BaseRole()
        {
            OrganizerDisable = false;
        }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the remark.
        /// </summary>
        /// <value>The remark.</value>
        public string Remark { get; set; }


        /// <summary>
        /// 标识角色的是否对组织结构有效
        /// </summary>
        public bool OrganizerDisable { get; set; }

        /// <summary>
        /// Gets or sets the base users.
        /// </summary>
        /// <value>The base users.</value>
        public virtual ICollection<BaseUserRole> BaseUserRoles { get; set; }

        /// <summary>
        /// Gets or sets the base role permissions.
        /// </summary>
        /// <value>The base role permissions.</value>
        public virtual ICollection<BaseRolePermission> BaseRolePermissions { get; set; }
         
    }
}
